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; self::$initialized = true; } } 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.120.0090.00018.91
8.3.110.0000.00920.94
8.3.100.0030.00620.14
8.3.90.0150.00318.59
8.3.80.0030.00618.43
8.3.70.0090.00616.37
8.3.60.0120.00318.22
8.3.50.0090.00916.44
8.3.40.0000.01518.96
8.3.30.0120.00918.79
8.3.20.0040.00418.68
8.3.10.0060.00320.64
8.3.00.0050.00317.59
8.2.240.0060.00318.95
8.2.230.0040.00722.58
8.2.220.0040.00424.06
8.2.210.0100.00726.77
8.2.200.0030.00616.75
8.2.190.0070.00716.88
8.2.180.0120.00618.22
8.2.170.0140.00022.96
8.2.160.0100.00319.21
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0100.00022.30
8.2.100.0120.00017.84
8.2.90.0000.00817.97
8.2.80.0000.00819.29
8.2.70.0000.00817.75
8.2.60.0030.00617.93
8.2.50.0040.00818.07
8.2.40.0000.00917.98
8.2.30.0060.00318.13
8.2.20.0050.00217.76
8.2.10.0030.00517.82
8.2.00.0000.00817.63
8.1.300.0000.00918.34
8.1.290.0040.00418.88
8.1.280.0160.00025.92
8.1.270.0070.00323.95
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.60
8.1.230.0110.00020.99
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0000.00818.64
8.1.160.0000.00818.92
8.1.150.0050.00318.66
8.1.140.0000.00717.52
8.1.130.0030.00317.75
8.1.120.0030.00317.48
8.1.110.0000.00717.33
8.1.100.0040.00417.47
8.1.90.0070.00017.52
8.1.80.0050.00317.50
8.1.70.0050.00317.36
8.1.60.0000.00917.66
8.1.50.0000.00717.36
8.1.40.0040.00417.56
8.1.30.0030.00517.50
8.1.20.0030.00517.64
8.1.10.0080.00017.63
8.1.00.0040.00417.57
8.0.300.0030.00620.04
8.0.290.0060.00316.75
8.0.280.0040.00418.42
8.0.270.0000.00717.28
8.0.260.0030.00316.86
8.0.250.0000.00716.97
8.0.240.0060.00617.07
8.0.230.0070.00016.96
8.0.220.0030.00316.88
8.0.210.0000.00716.97
8.0.200.0030.00317.03
8.0.190.0030.00617.09
8.0.180.0040.00417.03
8.0.170.0080.00016.97
8.0.160.0000.00716.90
8.0.150.0000.00916.99
8.0.140.0050.00216.89
8.0.130.0000.00513.43
8.0.120.0050.00216.92
8.0.110.0060.00316.92
8.0.100.0040.00416.88
8.0.90.0000.00716.92
8.0.80.0110.01016.92
8.0.70.0000.00916.85
8.0.60.0000.00716.88
8.0.50.0020.00516.96
8.0.30.0110.00717.15
8.0.20.0110.01217.23
8.0.10.0040.00417.08
8.0.00.0050.01416.92
7.4.330.0050.00014.83
7.4.320.0040.00416.66
7.4.300.0070.00016.64
7.4.290.0040.00416.54
7.4.280.0030.00616.44
7.4.270.0000.00816.59
7.4.260.0030.00313.29
7.4.250.0000.00816.59
7.4.240.0030.00316.43
7.4.230.0030.00616.36
7.4.220.0100.00716.67
7.4.210.0090.00716.57
7.4.200.0070.00016.59
7.4.190.0030.00316.75
7.4.160.0120.00616.56
7.4.150.0150.00317.07
7.4.140.0080.01317.22
7.4.130.0090.00816.72
7.4.120.0080.01116.68
7.4.110.0140.00416.62
7.4.100.0100.00816.53
7.4.90.0130.01016.43
7.4.80.0090.00618.80
7.4.70.0090.01216.39
7.4.60.0060.01216.55
7.4.50.0060.00016.59
7.4.40.0030.01422.27
7.4.30.0100.00716.63
7.4.10.0030.01315.09
7.4.00.0090.00714.97
7.3.330.0060.00013.31
7.3.320.0030.00313.24
7.3.310.0000.00716.30
7.3.300.0030.00316.38
7.3.290.0100.00616.45
7.3.280.0100.00816.41
7.3.270.0040.01517.07
7.3.260.0090.01118.24
7.3.250.0080.01116.49
7.3.240.0130.00316.61
7.3.230.0140.00316.66
7.3.210.0100.00616.56
7.3.200.0040.01219.39
7.3.190.0070.01016.35
7.3.180.0200.00016.52
7.3.170.0130.00716.66
7.3.160.0130.00316.64
7.3.130.0090.00914.84
7.3.120.0100.00715.04
7.3.110.0050.01314.79
7.3.100.0080.00814.98
7.3.90.0060.00914.86
7.3.80.0070.00715.07
7.3.70.0070.00714.86
7.3.60.0070.00914.74
7.3.50.0080.00814.84
7.3.40.0070.00514.82
7.3.30.0060.00914.95
7.3.20.0040.01316.62
7.3.10.0080.00616.74
7.3.00.0050.00916.67
7.2.330.0150.00616.65
7.2.320.0060.01616.59
7.2.310.0170.00316.46
7.2.300.0070.01016.43
7.2.290.0030.01316.39
7.2.260.0040.01414.68
7.2.250.0070.01114.89
7.2.240.0090.00715.00
7.2.230.0060.00515.04
7.2.220.0070.01115.00
7.2.210.0080.00514.87
7.2.200.0030.00814.91
7.2.190.0030.01014.95
7.2.180.0030.01415.00
7.2.170.0050.00914.91
7.2.160.0030.01115.11
7.2.150.0040.00816.94
7.2.140.0000.01016.84
7.2.130.0060.00616.82
7.2.120.0080.00616.82
7.2.110.0050.00516.67
7.2.100.0030.00816.78
7.2.90.0040.00716.79
7.2.80.0080.00816.83
7.2.70.0030.01016.85
7.2.60.0060.00716.81
7.2.50.0050.00616.84
7.2.40.0030.01116.79
7.2.30.0060.00616.84
7.2.20.0030.01016.82
7.2.10.0040.01016.84
7.2.00.0050.00817.49
7.1.330.0050.01015.56
7.1.320.0030.01215.81
7.1.310.0090.00415.80
7.1.300.0070.00915.48
7.1.290.0060.00815.62
7.1.280.0040.00915.57
7.1.270.0070.00915.51
7.1.260.0030.00615.72
7.1.250.0040.00715.68
7.1.240.0060.00715.60
7.1.230.0030.00915.57
7.1.220.0050.01015.41
7.1.210.0020.01415.56
7.1.200.0080.00615.54
7.1.190.0050.00815.63
7.1.180.0070.00615.46
7.1.170.0050.00815.57
7.1.160.0040.00815.72
7.1.150.0080.00715.59
7.1.140.0080.00315.61
7.1.130.0050.00515.58
7.1.120.0050.00715.75
7.1.110.0020.00915.55
7.1.100.0040.00616.46
7.1.90.0080.00315.79
7.1.80.0050.00815.81
7.1.70.0030.00915.97
7.1.60.0060.00916.86
7.1.50.0070.00416.15
7.1.40.0050.00615.56
7.1.30.0080.00615.72
7.1.20.0050.00615.65
7.1.10.0080.00615.73
7.1.00.0030.03317.91
7.0.330.0070.00915.06
7.0.320.0040.00715.22
7.0.310.0090.00315.43
7.0.300.0000.01115.26
7.0.290.0070.00715.19
7.0.280.0040.00915.41
7.0.270.0060.00415.38
7.0.260.0080.00615.22
7.0.250.0030.00915.31
7.0.240.0070.00815.28
7.0.230.0140.00515.36
7.0.220.0050.01015.42
7.0.210.0020.00615.28
7.0.200.0000.01015.74
7.0.190.0050.01015.27
7.0.180.0080.00315.29
7.0.170.0060.00615.44
7.0.160.0050.00715.27
7.0.150.0000.01215.30
7.0.140.0060.02817.49
7.0.130.0050.00715.26
7.0.120.0060.01517.60
7.0.110.0050.00815.32
7.0.100.0030.00715.31
7.0.90.0030.01015.20
7.0.80.0050.00715.16
7.0.70.0030.01115.30
7.0.60.0080.01516.96
7.0.50.0040.02516.26
7.0.40.0030.02614.68
7.0.30.0080.03414.71
7.0.20.0070.02514.84
7.0.10.0060.03214.79
7.0.00.0070.01914.83
5.6.400.0070.00314.22
5.6.390.0110.00414.46
5.6.380.0050.00514.02
5.6.370.0030.01114.29
5.6.360.0080.00314.28
5.6.350.0060.00414.35
5.6.340.0030.01014.34
5.6.330.0090.00514.24
5.6.320.0040.01014.22
5.6.310.0020.00914.17
5.6.300.0080.00514.09
5.6.290.0060.00514.05
5.6.280.0090.02616.60
5.6.270.0100.00314.42
5.6.260.0020.00914.22
5.6.250.0050.00914.19
5.6.240.0040.00614.29
5.6.230.0070.00714.18
5.6.220.0070.00514.20
5.6.210.0050.02916.35
5.6.200.0050.03415.56
5.6.190.0080.02815.54
5.6.180.0050.03015.53
5.6.170.0040.03415.61
5.6.160.0020.02815.50
5.6.150.0130.02815.47
5.6.140.0040.02915.46
5.6.130.0070.02615.55
5.6.120.0090.03015.59
5.6.110.0070.02815.53
5.6.100.0090.02815.55
5.6.90.0060.03315.52
5.6.80.0110.02315.19
5.6.70.0070.03015.43
5.6.60.0060.02615.32
5.6.50.0080.02815.19
5.6.40.0110.02415.20
5.6.30.0100.02915.19
5.6.20.0070.02715.20
5.6.10.0120.02115.36
5.6.00.0070.02115.34
5.5.380.0080.00312.69
5.5.370.0030.00812.72
5.5.360.0030.00712.56
5.5.350.0070.01815.32
5.5.340.0080.02414.22
5.5.330.0080.03214.32
5.5.320.0060.02214.37
5.5.310.0080.02614.37
5.5.300.0090.02914.44
5.5.290.0050.02314.37
5.5.280.0050.02014.38
5.5.270.0060.02714.27
5.5.260.0040.03014.40
5.5.250.0090.02114.32
5.5.240.0100.02514.10
5.5.230.0080.02613.86
5.5.220.0040.02314.21
5.5.210.0050.03014.23
5.5.200.0060.03014.16
5.5.190.0080.02414.15
5.5.180.0090.03013.85
5.5.170.0100.00512.50
5.5.160.0100.02314.08
5.5.150.0040.02914.12
5.5.140.0070.01614.12
5.5.130.0050.01714.22
5.5.120.0050.01814.22
5.5.110.0080.01613.91
5.5.100.0060.02914.11
5.5.90.0060.02814.25
5.5.80.0060.03114.07
5.5.70.0040.02014.09
5.5.60.0080.03114.00
5.5.50.0060.01914.07
5.5.40.0060.02914.00
5.5.30.0050.02914.07
5.5.20.0070.02213.95
5.5.10.0060.01814.01
5.5.00.0040.02814.13
5.4.450.0080.02814.61
5.4.440.0040.03014.58
5.4.430.0090.02814.54
5.4.420.0120.02914.57
5.4.410.0120.02714.54
5.4.400.0170.01914.45
5.4.390.0120.03014.40
5.4.380.0090.01914.42
5.4.370.0190.02414.39
5.4.360.0110.02214.41
5.4.350.0130.02214.33
5.4.340.0160.03114.46
5.4.330.0140.00512.13
5.4.320.0090.02814.42
5.4.310.0090.02414.39
5.4.300.0060.01414.44
5.4.290.0070.01514.40
5.4.280.0090.02214.39
5.4.270.0070.01514.44
5.4.260.0080.02614.40
5.4.250.0100.02514.25
5.4.240.0060.03014.32
5.4.230.0100.02614.36
5.4.220.0050.02614.44
5.4.210.0080.01814.44
5.4.200.0030.03114.36
5.4.190.0080.02614.47
5.4.180.0020.02814.28
5.4.170.0070.01614.38
5.4.160.0090.02514.29
5.4.150.0070.03014.34
5.4.140.0070.02813.55
5.4.130.0060.01813.45
5.4.120.0060.02713.46
5.4.110.0060.02713.49
5.4.100.0040.02613.59
5.4.90.0070.01913.54
5.4.80.0080.02613.54
5.4.70.0070.02613.46
5.4.60.0090.02213.58
5.4.50.0090.02413.49
5.4.40.0050.02713.58
5.4.30.0070.02513.53
5.4.20.0100.02313.48
5.4.10.0030.02913.55
5.4.00.0100.02413.29
5.3.290.0070.02612.75
5.3.280.0050.03212.76
5.3.270.0050.03212.81
5.3.260.0070.01612.79
5.3.250.0020.03112.86
5.3.240.0050.02512.78
5.3.230.0090.02712.80
5.3.220.0080.02712.82
5.3.210.0090.02912.83
5.3.200.0040.03112.73
5.3.190.0040.03112.78
5.3.180.0040.02712.87
5.3.170.0050.03012.87
5.3.160.0040.02312.88
5.3.150.0090.01812.83
5.3.140.0030.02812.86
5.3.130.0020.03212.84
5.3.120.0050.02412.81
5.3.110.0050.02812.79
5.3.100.0040.02012.54
5.3.90.0050.02712.63
5.3.80.0040.01812.54
5.3.70.0040.03012.54
5.3.60.0070.01412.54
5.3.50.0050.01712.60
5.3.40.0010.02412.60
5.3.30.0020.01712.67
5.3.20.0080.03012.50
5.3.10.0030.02912.43
5.3.00.0060.02912.42
5.2.170.0080.03110.31
5.2.160.0020.03710.38
5.2.150.0010.02410.41
5.2.140.0070.03410.40
5.2.130.0080.03310.37
5.2.120.0050.03010.32
5.2.110.0020.01910.30
5.2.100.0050.03310.35
5.2.90.0020.02010.21
5.2.80.0090.01710.29
5.2.70.0080.01310.31
5.2.60.0020.02010.24
5.2.50.0080.03210.25
5.2.40.0040.03110.31
5.2.30.0050.02210.20
5.2.20.0020.02010.19
5.2.10.0050.02810.17
5.2.00.0110.02710.10
5.1.60.0040.0279.67
5.1.50.0040.0209.73
5.1.40.0040.0239.74
5.1.30.0030.0179.82
5.1.20.0070.0289.91
5.1.10.0120.0289.86
5.1.00.0050.0209.73
5.0.50.0000.0208.98
5.0.40.0090.0078.96
5.0.30.0030.0238.85
5.0.20.0030.0228.83
5.0.10.0030.0238.84
5.0.00.0050.0238.89
4.4.90.0030.0088.48
4.4.80.0020.0228.48
4.4.70.0030.0088.48
4.4.60.0050.0178.48
4.4.50.0020.0188.48
4.4.40.0020.0328.48
4.4.30.0040.0208.48
4.4.20.0060.0158.48
4.4.10.0030.0128.48
4.4.00.0020.0178.48
4.3.110.0000.0118.48
4.3.100.0020.0208.48
4.3.90.0030.0138.48
4.3.80.0070.0128.48
4.3.70.0060.0088.48
4.3.60.0040.0158.48
4.3.50.0020.0168.48
4.3.40.0030.0258.48
4.3.30.0040.0158.48
4.3.20.0010.0168.48
4.3.10.0040.0208.48
4.3.00.0020.0198.48

preferences:
31.64 ms | 403 KiB | 5 Q