3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PHPApprentice { private static $velocity = ''; private static $initialized = false; public static function initialize () { if ( self::initialized ) return; self::$initialized = true; self::$velocity = 'fast!'; } public static function getVelocity () { self::initialize(); return self::$velocity; } public static function setVelocity ( $value ) { self::$velocity = $value; } } PHPApprentice::setVelocity ( 'Ludicrous Speed!!' ); echo PHPApprentice::getVelocity();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0140.00718.39
8.3.50.0050.01116.53
8.3.40.0040.01118.76
8.3.30.0070.00718.84
8.3.20.0040.00418.96
8.3.10.0030.00620.47
8.3.00.0060.00317.75
8.2.180.0120.00916.75
8.2.170.0070.00722.96
8.2.160.0140.00022.08
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00019.77
8.2.110.0060.00320.99
8.2.100.0040.00817.79
8.2.90.0090.00019.21
8.2.80.0000.00817.97
8.2.70.0070.00317.62
8.2.60.0030.00517.93
8.2.50.0030.00618.07
8.2.40.0050.00518.09
8.2.30.0000.00718.13
8.2.20.0040.00417.72
8.2.10.0040.00417.73
8.2.00.0040.00417.75
8.1.280.0080.00825.92
8.1.270.0050.00323.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00321.37
8.1.230.0040.00817.51
8.1.220.0050.00217.74
8.1.210.0050.00318.77
8.1.200.0000.01017.35
8.1.190.0080.00017.22
8.1.180.0000.00718.10
8.1.170.0000.00818.89
8.1.160.0040.00418.94
8.1.150.0000.00718.69
8.1.140.0070.00017.45
8.1.130.0030.00317.82
8.1.120.0040.00417.49
8.1.110.0040.00417.49
8.1.100.0000.00717.30
8.1.90.0040.00417.46
8.1.80.0000.00717.49
8.1.70.0030.00317.47
8.1.60.0000.00917.58
8.1.50.0040.00417.53
8.1.40.0000.00817.51
8.1.30.0040.00417.60
8.1.20.0000.00917.72
8.1.10.0040.00417.59
8.1.00.0000.00917.38
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00818.45
8.0.270.0070.00017.11
8.0.260.0070.00016.89
8.0.250.0040.00417.01
8.0.240.0040.00717.08
8.0.230.0040.00417.00
8.0.220.0000.00716.88
8.0.210.0070.00016.93
8.0.200.0000.00616.91
8.0.190.0090.00317.01
8.0.180.0000.00817.00
8.0.170.0040.00416.89
8.0.160.0070.00316.88
8.0.150.0040.00416.79
8.0.140.0040.00416.85
8.0.130.0060.00013.38
8.0.120.0070.00016.94
8.0.110.0040.00417.00
8.0.100.0040.00416.77
8.0.90.0080.00016.74
8.0.80.0040.01516.98
8.0.70.0040.00416.93
8.0.60.0040.00416.86
8.0.50.0070.00016.98
8.0.30.0180.00517.10
8.0.20.0150.00317.22
8.0.10.0040.00417.04
8.0.00.0110.00816.54
7.4.330.0050.00014.83
7.4.320.0060.00016.61
7.4.300.0000.00616.56
7.4.290.0070.00016.61
7.4.280.0030.00616.55
7.4.270.0070.00016.51
7.4.260.0050.00013.18
7.4.250.0030.00616.41
7.4.240.0040.00416.56
7.4.230.0080.00016.51
7.4.220.0150.00316.56
7.4.210.0080.01016.52
7.4.200.0030.00316.34
7.4.190.0000.00716.69
7.4.160.0150.00616.34
7.4.150.0110.00617.07
7.4.140.0090.00917.22
7.4.130.0070.00916.50
7.4.120.0090.00816.64
7.4.110.0130.00316.61
7.4.100.0060.01116.44
7.4.90.0070.01016.43
7.4.80.0090.00918.80
7.4.70.0040.01316.41
7.4.60.0160.01016.50
7.4.50.0000.00816.57
7.4.40.0040.00722.27
7.4.30.0070.01016.40
7.4.00.0090.00914.80
7.3.330.0030.00313.36
7.3.320.0000.00513.38
7.3.310.0030.00316.25
7.3.300.0030.00316.29
7.3.290.0090.01216.51
7.3.280.0070.00816.43
7.3.270.0100.00717.07
7.3.260.0110.00818.24
7.3.250.0080.01216.44
7.3.240.0100.00716.34
7.3.230.0080.00916.39
7.3.210.0000.01716.43
7.3.200.0070.01419.39
7.3.190.0070.01516.35
7.3.180.0030.01416.48
7.3.170.0070.01016.38
7.3.160.0090.00616.54
7.3.120.0060.00614.68
7.2.330.0130.00516.34
7.2.320.0080.00816.38
7.2.310.0110.01116.63
7.2.300.0180.00616.80
7.2.290.0110.01116.53
7.2.60.0000.01316.86
7.1.200.0030.00615.60
7.1.70.0030.00716.80
7.1.60.0140.01019.40
7.1.50.0030.01716.66
7.1.00.0070.07322.48
7.0.200.0000.00716.88
7.0.140.0000.07322.08
7.0.120.0070.03022.16
7.0.60.0200.07319.88
7.0.50.0100.06317.96
7.0.40.0170.07720.04
7.0.30.0000.05020.18
7.0.20.0170.03720.02
7.0.10.0000.05020.10
7.0.00.0030.05320.23
5.6.280.0100.06320.91
5.6.210.0130.06720.66
5.6.200.0000.08718.23
5.6.190.0030.07720.49
5.6.180.0000.05720.59
5.6.170.0130.03320.62
5.6.160.0070.04720.55
5.6.150.0070.04320.23
5.6.140.0100.07720.41
5.6.130.0070.04320.13
5.6.120.0000.06720.17
5.6.110.0030.04320.43
5.6.100.0130.07720.39
5.6.90.0000.04720.21
5.6.80.0100.03719.80
5.6.70.0070.06319.71
5.6.60.0000.06319.61
5.6.50.0070.05719.79
5.6.40.0070.05019.59
5.6.30.0070.04719.59
5.6.20.0100.07319.79
5.6.10.0030.07319.69
5.6.00.0100.05319.78
5.5.350.0270.07020.32
5.5.340.0070.08017.97
5.5.330.0170.05320.29
5.5.320.0000.04720.29
5.5.310.0030.04320.41
5.5.300.0100.07020.29
5.5.290.0030.04320.32
5.5.280.0070.08320.23
5.5.270.0070.07020.29
5.5.260.0070.04320.18
5.5.250.0070.08019.98
5.5.240.0100.08319.55
5.5.230.0100.07319.50
5.5.220.0070.05719.34
5.5.210.0130.07019.34
5.5.200.0100.07719.64
5.5.190.0070.07019.67
5.5.180.0170.07719.60
5.5.160.0100.05319.47
5.5.150.0070.07319.47
5.5.140.0070.08719.32
5.5.130.0030.05719.56
5.5.120.0030.08719.52
5.5.110.0100.03719.33
5.5.100.0100.07319.46
5.5.90.0170.03019.29
5.5.80.0070.03719.54
5.5.70.0070.08319.23
5.5.60.0070.07019.36
5.5.50.0070.04719.54
5.5.40.0030.05719.46
5.5.30.0100.04319.40
5.5.20.0100.07719.21
5.5.10.0030.07719.45
5.5.00.0100.08319.48
5.4.450.0000.04719.48
5.4.440.0070.03719.17
5.4.430.0100.05019.47
5.4.420.0070.06719.58
5.4.410.0030.04019.04
5.4.400.0070.04319.26
5.4.390.0100.06018.92
5.4.380.0170.06718.98
5.4.370.0030.08019.00
5.4.360.0100.06319.15
5.4.350.0100.07318.86
5.4.340.0070.07718.92
5.4.320.0000.06019.12
5.4.310.0100.07319.08
5.4.300.0200.05019.24
5.4.290.0070.06719.04
5.4.280.0070.03719.24
5.4.270.0030.06718.87
5.4.260.0070.06319.14
5.4.250.0070.06018.85
5.4.240.0000.04319.23
5.4.230.0030.03718.99
5.4.220.0070.04319.18
5.4.210.0130.05019.14
5.4.200.0100.07019.15
5.4.190.0100.07719.25
5.4.180.0100.03718.91
5.4.170.0100.07019.14
5.4.160.0130.07318.90
5.4.150.0070.05319.06
5.4.140.0070.04716.31
5.4.130.0100.07016.39
5.4.120.0030.05016.29
5.4.110.0030.03716.47
5.4.100.0030.04316.43
5.4.90.0000.05716.53
5.4.80.0100.03016.44
5.4.70.0000.05316.29
5.4.60.0030.04716.49
5.4.50.0070.03716.38
5.4.40.0130.06316.47
5.4.30.0100.04716.46
5.4.20.0030.05716.36
5.4.10.0170.06716.42
5.4.00.0030.07715.91
5.3.290.0000.05714.73
5.3.280.0000.04314.61
5.3.270.0070.04014.61
5.3.260.0070.06014.65
5.3.250.0070.05014.66
5.3.240.0070.07014.61
5.3.230.0100.06014.66
5.3.220.0070.03714.58
5.3.210.0000.04314.63
5.3.200.0100.07714.63
5.3.190.0000.05714.59
5.3.180.0070.04714.62
5.3.170.0070.07714.73
5.3.160.0070.03714.57
5.3.150.0070.03714.59
5.3.140.0100.06714.56
5.3.130.0070.05314.55
5.3.120.0070.05314.57
5.3.110.0100.08014.57
5.3.100.0070.04714.04
5.3.90.0070.05714.18
5.3.80.0030.07314.02
5.3.70.0100.05713.99
5.3.60.0070.06014.08
5.3.50.0030.04314.09
5.3.40.0030.04313.90
5.3.30.0170.06314.06
5.3.20.0030.03713.85
5.3.10.0030.05013.70
5.3.00.0130.06013.64
5.2.170.0100.03711.15
5.2.160.0030.04011.10
5.2.150.0030.05311.22
5.2.140.0070.02711.22
5.2.130.0030.03711.14
5.2.120.0000.06011.14
5.2.110.0030.06011.14
5.2.100.0030.04011.26
5.2.90.0030.05011.14
5.2.80.0000.07011.16
5.2.70.0000.03311.25
5.2.60.0070.05011.20
5.2.50.0000.03011.10
5.2.40.0070.03011.00
5.2.30.0030.05011.05
5.2.20.0100.02710.85
5.2.10.0030.06010.86
5.2.00.0070.04310.72
5.1.60.0070.0309.99
5.1.50.0030.0379.96
5.1.40.0130.03010.14
5.1.30.0030.03710.35
5.1.20.0070.05310.33
5.1.10.0030.05010.05
5.1.00.0030.04310.05
5.0.50.0030.0338.51
5.0.40.0030.0238.46
5.0.30.0030.0678.29
5.0.20.0070.0308.27
5.0.10.0000.0238.24
5.0.00.0030.0338.14
4.4.90.0000.0207.49
4.4.80.0030.0137.49
4.4.70.0030.0307.49
4.4.60.0030.0337.49
4.4.50.0070.0177.49
4.4.40.0000.0577.49
4.4.30.0070.0307.49
4.4.20.0030.0337.49
4.4.10.0030.0337.49
4.4.00.0000.0277.49
4.3.110.0000.0207.49
4.3.100.0000.0237.49
4.3.90.0000.0237.49
4.3.80.0000.0307.49
4.3.70.0070.0137.49
4.3.60.0000.0177.49
4.3.50.0000.0207.49
4.3.40.0000.0277.49
4.3.30.0000.0377.49
4.3.20.0000.0377.49
4.3.10.0030.0277.49
4.3.00.0030.0137.49

preferences:
41.45 ms | 400 KiB | 5 Q