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; } public static function getVelocity () { return self::$velocity; } public static function setVelocity ( $value ) { self::$velocity = $value; } } PHPApprentice::setVelocity ( 'Ludicrous Speed' ); echo PHPApprentice::getVelocity(); //$rafa = (new PHPApprentice ())->setVelocity ( 'jj' ); //echo $rafa->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.0070.00718.27
8.3.50.0150.00417.29
8.3.40.0070.01418.75
8.3.30.0040.01118.70
8.3.20.0000.00818.77
8.3.10.0060.00320.57
8.3.00.0060.00317.25
8.2.180.0120.00616.38
8.2.170.0060.00922.96
8.2.160.0030.01022.04
8.2.150.0080.00024.18
8.2.140.0080.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00019.83
8.2.110.0030.00721.05
8.2.100.0000.01117.72
8.2.90.0040.00419.08
8.2.80.0060.00318.04
8.2.70.0080.00317.50
8.2.60.0090.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00718.28
8.2.30.0040.00418.07
8.2.20.0000.00717.65
8.2.10.0040.00417.59
8.2.00.0000.00717.70
8.1.280.0140.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0100.01022.51
8.1.230.0040.00820.88
8.1.220.0000.01018.77
8.1.210.0000.00818.92
8.1.200.0050.00517.23
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0000.00818.84
8.1.160.0040.00418.84
8.1.150.0050.00218.62
8.1.140.0040.00417.26
8.1.130.0080.00017.83
8.1.120.0000.00717.43
8.1.110.0000.00717.40
8.1.100.0000.00817.30
8.1.90.0080.00017.34
8.1.80.0050.00217.40
8.1.70.0040.00417.36
8.1.60.0000.00817.59
8.1.50.0000.00717.50
8.1.40.0040.00417.42
8.1.30.0040.00417.68
8.1.20.0060.00317.68
8.1.10.0000.00817.48
8.1.00.0060.00317.41
8.0.300.0060.00319.90
8.0.290.0000.00716.63
8.0.280.0000.00718.30
8.0.270.0000.00717.28
8.0.260.0000.00818.52
8.0.250.0040.00416.87
8.0.240.0040.00416.98
8.0.230.0030.00316.93
8.0.220.0070.00016.80
8.0.210.0040.00416.87
8.0.200.0030.00316.81
8.0.190.0040.00416.87
8.0.180.0000.00716.89
8.0.170.0070.00016.75
8.0.160.0000.00716.86
8.0.150.0040.00416.83
8.0.140.0100.00016.81
8.0.130.0030.00313.30
8.0.120.0030.00516.70
8.0.110.0000.00816.73
8.0.100.0070.00016.75
8.0.90.0030.00316.87
8.0.80.0060.00916.85
8.0.70.0000.00716.81
8.0.60.0050.00216.82
8.0.50.0040.00416.72
8.0.30.0090.01316.93
8.0.20.0060.01217.07
8.0.10.0040.00416.88
8.0.00.0090.00916.72
7.4.330.0050.00014.64
7.4.320.0030.00316.45
7.4.300.0030.00316.41
7.4.290.0030.00316.57
7.4.280.0050.00516.66
7.4.270.0030.00316.57
7.4.260.0030.00313.31
7.4.250.0000.00816.50
7.4.240.0030.00316.49
7.4.230.0070.00016.36
7.4.220.0030.01416.66
7.4.210.0080.00816.67
7.4.200.0030.00316.60
7.4.190.0030.00316.78
7.4.160.0100.00816.41
7.4.150.0100.00617.07
7.4.140.0060.01417.19
7.4.130.0080.01316.50
7.4.120.0050.01516.65
7.4.110.0060.01316.38
7.4.100.0120.01216.72
7.4.90.0160.00316.68
7.4.80.0130.00918.80
7.4.70.0110.01116.49
7.4.60.0060.01216.47
7.4.50.0060.00316.61
7.4.40.0060.00622.27
7.4.30.0060.01016.45
7.4.00.0080.00815.09
7.3.330.0040.00413.32
7.3.320.0000.00513.16
7.3.310.0000.00716.18
7.3.300.0070.00016.29
7.3.290.0060.01316.36
7.3.280.0110.00716.34
7.3.270.0150.00417.07
7.3.260.0130.00918.24
7.3.250.0090.01216.38
7.3.240.0060.01616.34
7.3.230.0070.01016.39
7.3.210.0070.01016.40
7.3.200.0100.01019.39
7.3.190.0090.01416.44
7.3.180.0090.00916.61
7.3.170.0120.00416.59
7.3.160.0150.00716.37
7.3.120.0080.01014.77
7.3.110.0110.00714.61
7.3.100.0090.00614.44
7.3.90.0060.00614.73
7.3.80.0030.00914.86
7.3.70.0100.00314.77
7.3.60.0030.01014.77
7.3.50.0000.01714.48
7.3.40.0000.01414.64
7.3.30.0090.00614.81
7.3.20.0040.00716.68
7.3.10.0060.00616.70
7.3.00.0060.00316.50
7.2.330.0120.00916.66
7.2.320.0060.01816.75
7.2.310.0070.01216.70
7.2.300.0090.00816.61
7.2.290.0090.00916.66
7.2.250.0080.01014.71
7.2.240.0100.01015.21
7.2.230.0090.00614.60
7.2.220.0060.00315.14
7.2.210.0060.00615.11
7.2.200.0040.00815.01
7.2.190.0120.00614.97
7.2.180.0040.01214.77
7.2.170.0060.00914.88
7.2.00.0100.00319.45
7.1.330.0000.01515.41
7.1.320.0060.00915.87
7.1.310.0110.00315.80
7.1.300.0040.01115.75
7.1.290.0070.00715.63
7.1.280.0060.00615.91
7.1.270.0040.00815.73
7.1.260.0060.00615.43
7.1.100.0040.00818.04
7.1.70.0000.01016.89
7.1.60.0040.00719.40
7.1.50.0030.01716.73
7.1.00.0000.08022.33
7.0.200.0030.00616.49
7.0.140.0000.08022.12
7.0.60.0070.06720.02
7.0.50.0070.07317.87
7.0.40.0070.08017.70
7.0.30.0100.08017.73
7.0.20.0170.07017.85
7.0.10.0130.07317.85
7.0.00.0030.05317.84
5.6.210.0100.07720.55
5.6.200.0000.06018.19
5.6.190.0070.06718.28
5.6.180.0070.07318.12
5.6.170.0070.05018.23
5.6.160.0030.07318.16
5.6.150.0170.07018.25
5.6.140.0100.07718.15
5.6.130.0030.06018.18
5.6.120.0100.08018.15
5.6.110.0130.07718.14
5.6.100.0000.04718.18
5.6.90.0000.08018.15
5.6.80.0030.07717.52
5.6.70.0030.08317.66
5.6.60.0200.06717.53
5.6.50.0030.08017.57
5.6.40.0070.07317.51
5.6.30.0130.06717.51
5.6.20.0030.04017.63
5.6.10.0070.04317.49
5.6.00.0070.06017.64
5.5.350.0370.06020.30
5.5.340.0130.07718.04
5.5.330.0230.03718.07
5.5.320.0100.08017.96
5.5.310.0070.04718.03
5.5.300.0070.07317.95
5.5.290.0130.04718.04
5.5.280.0070.08318.08
5.5.270.0030.08317.98
5.5.260.0100.06717.93
5.5.250.0030.08717.75
5.5.240.0030.08017.46
5.5.230.0030.04017.31
5.5.220.0030.08317.36
5.5.210.0130.04717.35
5.5.200.0100.07317.37
5.5.190.0170.06717.36
5.5.180.0170.04017.39
5.5.160.0030.04717.43
5.5.150.0030.03717.39
5.5.140.0000.04017.29
5.5.130.0000.04017.30
5.5.120.0000.04017.32
5.5.110.0000.04017.41
5.5.100.0000.04017.32
5.5.90.0030.03717.19
5.5.80.0030.04317.24
5.5.70.0100.03017.23
5.5.60.0030.03717.31
5.5.50.0030.03717.18
5.5.40.0030.03717.29
5.5.30.0070.03317.32
5.5.20.0030.04017.19
5.5.10.0030.03717.16
5.5.00.0070.03317.32
5.4.450.0030.06019.39
5.4.440.0100.07719.45
5.4.430.0070.07019.30
5.4.420.0100.06019.38
5.4.410.0000.05719.21
5.4.400.0100.07019.04
5.4.390.0070.07719.05
5.4.380.0070.05719.03
5.4.370.0100.07319.04
5.4.360.0200.06319.11
5.4.350.0170.03719.04
5.4.340.0070.03719.05
5.4.320.0030.03719.12
5.4.310.0000.04019.08
5.4.300.0100.03019.01
5.4.290.0200.02019.01
5.4.280.0100.03019.11
5.4.270.0030.03718.88
5.4.260.0000.04719.14
5.4.250.0100.03019.00
5.4.240.0030.03719.01
5.4.230.0030.03719.04
5.4.220.0100.03019.14
5.4.210.0030.03719.11
5.4.200.0000.04019.00
5.4.190.0070.03319.13
5.4.180.0100.03318.88
5.4.170.0000.04719.00
5.4.160.0100.03018.87
5.4.150.0000.04018.94
5.4.140.0070.03016.48
5.4.130.0000.03716.43
5.4.120.0000.03716.29
5.4.110.0000.03716.34
5.4.100.0070.03716.40
5.4.90.0000.03716.47
5.4.80.0070.03016.57
5.4.70.0000.03716.28
5.4.60.0030.04016.36
5.4.50.0030.03316.36
5.4.40.0030.03316.52
5.4.30.0000.03716.42
5.4.20.0070.07016.29
5.4.10.0170.03716.27
5.4.00.0030.03715.87
5.3.290.0030.06314.67
5.3.280.0070.03314.61
5.3.270.0030.03714.56
5.3.260.0030.03714.82
5.3.250.0070.03314.47
5.3.240.0000.03714.61
5.3.230.0130.02714.55
5.3.220.0000.03714.59
5.3.210.0000.04014.52
5.3.200.0030.03714.62
5.3.190.0030.03714.61
5.3.180.0000.03714.54
5.3.170.0070.03014.62
5.3.160.0030.03314.77
5.3.150.0030.03314.61
5.3.140.0070.03314.62
5.3.130.0030.07314.58
5.3.120.0070.05714.50
5.3.110.0070.07714.51
5.3.100.0030.06714.00
5.3.90.0070.07314.02
5.3.80.0070.07014.04
5.3.70.0070.04313.91
5.3.60.0000.04014.10
5.3.50.0030.04014.16
5.3.40.0100.07314.02
5.3.30.0070.05714.01
5.3.20.0000.04313.72
5.3.10.0130.06313.69
5.3.00.0070.05013.71
5.2.170.0000.07011.21
5.2.160.0100.04311.15
5.2.150.0030.06311.15
5.2.140.0030.05311.14
5.2.130.0000.04011.07
5.2.120.0000.04711.09
5.2.110.0100.03311.08
5.2.100.0030.06711.20
5.2.90.0000.04010.95
5.2.80.0070.03311.20
5.2.70.0070.06311.17
5.2.60.0070.05011.15
5.2.50.0070.05711.05
5.2.40.0070.03310.96
5.2.30.0100.03010.96
5.2.20.0030.06311.01
5.2.10.0100.05310.87
5.2.00.0030.03010.77
5.1.60.0030.02710.08
5.1.50.0070.05010.05
5.1.40.0000.06010.04
5.1.30.0030.05710.34
5.1.20.0030.05310.57
5.1.10.0030.03010.01
5.1.00.0100.05010.15
5.0.50.0030.0439.07
5.0.40.0030.0379.07
5.0.30.0070.0409.07
5.0.20.0030.0439.07
5.0.10.0030.0279.07
5.0.00.0000.0439.07
4.4.90.0100.0239.07
4.4.80.0030.0339.07
4.4.70.0030.0179.07
4.4.60.0030.0379.07
4.4.50.0070.0279.07
4.4.40.0030.0539.07
4.4.30.0030.0239.07
4.4.20.0070.0339.07
4.4.10.0000.0339.07
4.4.00.0100.0479.07
4.3.110.0070.0209.07
4.3.100.0100.0279.07
4.3.90.0030.0209.07
4.3.80.0000.0379.07
4.3.70.0000.0209.07
4.3.60.0000.0339.07
4.3.50.0070.0339.07
4.3.40.0000.0409.07
4.3.30.0070.0309.07
4.3.20.0000.0309.07
4.3.10.0000.0379.07
4.3.00.0030.0339.07

preferences:
43.39 ms | 400 KiB | 5 Q