3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static $progress = 5; public function scrapphone(){ self::$progress = 11; } public static function status(){ return self::$progress; } } $x = new foo; $x->scrapphone(); echo foo::status();

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.0120.00916.50
8.3.50.0040.01117.93
8.3.40.0040.01818.84
8.3.30.0100.00319.27
8.3.20.0070.00020.34
8.3.10.0040.00423.61
8.3.00.0080.00019.25
8.2.180.0140.00718.54
8.2.170.0110.00722.96
8.2.160.0070.01120.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.27
8.2.110.0060.00322.27
8.2.100.0080.00417.91
8.2.90.0050.00319.17
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0060.00317.93
8.2.50.0070.00318.07
8.2.40.0000.00819.88
8.2.30.0050.00317.93
8.2.20.0030.00517.56
8.2.10.0050.00218.06
8.2.00.0030.00517.67
8.1.270.0040.00423.82
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.77
8.1.230.0040.00818.97
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.53
8.1.180.0050.00519.01
8.1.170.0080.00018.50
8.1.160.0050.00221.91
8.1.150.0030.00718.63
8.1.140.0040.00417.31
8.1.130.0070.00017.79
8.1.120.0000.00717.37
8.1.110.0050.00317.39
8.1.100.0000.00817.40
8.1.90.0070.00017.44
8.1.80.0040.00417.38
8.1.70.0000.00717.21
8.1.60.0050.00317.63
8.1.50.0040.00417.52
8.1.40.0050.00317.52
8.1.30.0040.00417.64
8.1.20.0000.00817.70
8.1.10.0070.00017.60
8.1.00.0000.00817.41
8.0.300.0080.00018.77
8.0.290.0000.00717.05
8.0.280.0070.00018.36
8.0.270.0040.00417.16
8.0.260.0030.00317.21
8.0.250.0040.00416.87
8.0.240.0060.00016.92
8.0.230.0000.00716.96
8.0.220.0030.00316.82
8.0.210.0000.00816.72
8.0.200.0080.00016.91
8.0.190.0000.00816.86
8.0.180.0080.00016.93
8.0.170.0000.00716.83
8.0.160.0000.00716.89
8.0.150.0040.00416.77
8.0.140.0040.00416.68
8.0.130.0060.00013.32
8.0.120.0000.00716.70
8.0.110.0000.00816.68
8.0.100.0040.00416.88
8.0.90.0040.00416.71
8.0.80.0060.01016.89
8.0.70.0000.00716.64
8.0.60.0030.00516.78
8.0.50.0000.00716.80
8.0.30.0110.01216.96
8.0.20.0130.00417.40
8.0.10.0070.00016.95
8.0.00.0130.00416.57
7.4.330.0030.00315.00
7.4.320.0060.00016.51
7.4.300.0030.00316.50
7.4.290.0030.00316.61
7.4.280.0040.00416.50
7.4.270.0050.00316.51
7.4.260.0040.00416.42
7.4.250.0070.00016.47
7.4.240.0060.00116.44
7.4.230.0060.00016.55
7.4.220.0120.00616.38
7.4.210.0080.00616.54
7.4.200.0040.00216.71
7.4.190.0000.00716.77
7.4.160.0140.00516.57
7.4.150.0100.00717.40
7.4.140.0060.01417.86
7.4.130.0050.01116.35
7.4.120.0080.01016.57
7.4.110.0030.01416.71
7.4.100.0110.01116.54
7.4.90.0030.01416.25
7.4.80.0060.01319.39
7.4.70.0120.00716.56
7.4.60.0120.00316.35
7.4.50.0040.00416.58
7.4.40.0150.00316.48
7.4.30.0100.00616.44
7.4.00.0060.01214.90
7.3.330.0060.00013.32
7.3.320.0060.00013.36
7.3.310.0040.00416.43
7.3.300.0000.00716.26
7.3.290.0070.00716.32
7.3.280.0070.00916.31
7.3.270.0110.00817.40
7.3.260.0110.01116.44
7.3.250.0110.00616.22
7.3.240.0020.01416.56
7.3.230.0070.01016.39
7.3.210.0070.01016.39
7.3.200.0060.01519.39
7.3.190.0130.00616.38
7.3.180.0080.01516.27
7.3.170.0060.00916.60
7.3.160.0110.00516.38
7.3.120.0100.00714.59
7.3.110.0040.00814.85
7.3.100.0060.00614.97
7.3.90.0070.00714.73
7.3.80.0080.00814.75
7.3.70.0040.01114.52
7.3.60.0070.00714.73
7.3.50.0060.00914.92
7.3.40.0030.01014.49
7.3.30.0120.00314.84
7.3.20.0090.00616.45
7.3.10.0110.00416.60
7.3.00.0000.01316.82
7.2.330.0130.01016.66
7.2.320.0100.00716.48
7.2.310.0000.02016.74
7.2.300.0120.00616.57
7.2.290.0070.01016.57
7.2.240.0040.00714.99
7.2.230.0060.00615.23
7.2.220.0000.01315.35
7.2.210.0030.01215.06
7.2.200.0090.00914.96
7.2.190.0060.00314.92
7.2.180.0070.00314.77
7.2.170.0000.01015.08
7.2.160.0030.01214.91
7.2.150.0060.00616.97
7.2.140.0040.01416.66
7.2.130.0070.01016.67
7.2.120.0080.00416.95
7.2.110.0030.01317.04
7.2.100.0070.00716.73
7.2.90.0060.00617.01
7.2.80.0040.01416.93
7.2.70.0040.01116.62
7.2.60.0070.01017.11
7.2.50.0100.00717.04
7.2.40.0070.01016.86
7.2.30.0000.01216.98
7.2.20.0100.00716.71
7.2.10.0080.00816.80
7.2.00.0080.00918.22
7.1.330.0030.01015.75
7.1.320.0060.00315.86
7.1.310.0040.00415.53
7.1.300.0080.00315.54
7.1.290.0000.01115.63
7.1.280.0070.00715.52
7.1.270.0070.00315.51
7.1.260.0070.01015.44
7.1.250.0030.01015.29
7.1.200.0060.00615.63
7.1.100.0070.00717.91
7.1.70.0030.00716.91
7.1.60.0070.01719.46
7.1.50.0090.00916.78
7.1.00.0000.08022.42
7.0.200.0000.00816.33
7.0.140.0030.07722.01
7.0.60.0100.05319.95
7.0.50.0030.08317.81
7.0.40.0000.07720.25
7.0.30.0300.05320.23
7.0.20.0270.05320.17
7.0.10.0070.08720.16
7.0.00.0130.07020.12
5.6.280.0070.06721.12
5.6.210.0230.06720.65
5.6.200.0130.07018.16
5.6.190.0070.04020.39
5.6.180.0200.08320.79
5.6.170.0230.04320.50
5.6.160.0200.03320.51
5.6.150.0100.05018.16
5.6.140.0030.06018.28
5.6.130.0030.08318.16
5.6.120.0100.04721.04
5.6.110.0000.05321.03
5.6.100.0000.04721.01
5.6.90.0000.09021.13
5.6.80.0200.06720.41
5.5.350.4200.04020.41
5.5.340.0030.08017.98
5.5.330.0070.04320.29
5.5.320.0270.04320.36
5.5.310.0370.04020.34
5.5.300.0070.03717.96
5.5.290.0070.08317.98
5.5.280.0070.08320.77
5.5.270.0100.07320.84
5.5.260.0100.08720.80
5.5.250.0200.04720.59
5.5.240.0070.07720.26
5.4.450.0330.05719.31
5.4.440.0270.08019.55
5.4.430.0170.06719.55
5.4.420.0330.06719.58
5.4.410.0270.04319.04
5.4.400.0130.05718.84
5.4.390.0270.05319.15
5.4.380.0070.06018.47
5.4.370.0130.05318.61
5.4.360.0200.04318.72
5.4.350.0200.04718.59
5.4.340.0270.04718.78
5.4.320.0070.04912.50
5.4.310.0030.04812.50
5.4.300.0050.04912.50
5.4.290.0090.04412.48
5.4.280.0080.04912.38
5.4.270.0140.06212.38
5.4.260.0090.05612.38
5.4.250.0080.04112.39
5.4.240.0140.05612.38
5.4.230.0160.06712.38
5.4.220.0060.05412.38
5.4.210.0200.06212.37
5.4.200.0120.07712.38
5.4.190.0070.05412.37
5.4.180.0090.05312.37
5.4.170.0090.05212.38
5.4.160.0080.04612.38
5.4.150.0060.04412.37
5.4.140.0080.04012.06
5.4.130.0080.04012.05
5.4.120.0050.04012.00
5.4.110.0060.04312.00
5.4.100.0060.03612.00
5.4.90.0080.03612.00
5.4.80.0050.04012.00
5.4.70.0060.03612.00
5.4.60.0080.03812.00
5.4.50.0110.06312.00
5.4.40.0100.04511.98
5.4.30.0090.04711.98
5.4.20.0070.03911.98
5.4.10.0110.03311.98
5.4.00.0050.03911.47
5.3.290.0100.04412.80
5.3.280.0110.08012.71
5.3.270.0110.05412.72
5.3.260.0100.05812.71
5.3.250.0090.05612.72
5.3.240.0090.04312.72
5.3.230.0150.07012.71
5.3.220.0100.05312.68
5.3.210.0140.05212.68
5.3.200.0080.05012.68
5.3.190.0180.05812.68
5.3.180.0090.04112.67
5.3.170.0120.06812.67
5.3.160.0090.06612.68
5.3.150.0040.05012.68
5.3.140.0100.03712.66
5.3.130.0080.04212.66
5.3.120.0080.04512.66
5.3.110.0100.05412.66
5.3.100.0110.04612.12
5.3.90.0080.04912.10
5.3.80.0090.04712.09
5.3.70.0090.05012.09
5.3.60.0110.04812.08
5.3.50.0090.05112.03
5.3.40.0110.05012.03
5.3.30.0070.05111.98
5.3.20.0150.04411.77
5.3.10.0110.05011.73
5.3.00.0070.05811.72
5.2.170.0090.0419.23
5.2.160.0070.0429.22
5.2.150.0080.0429.23
5.2.140.0090.0489.22
5.2.130.0080.0449.18
5.2.120.0070.0299.18
5.2.110.0060.0349.19
5.2.100.0080.0289.18
5.2.90.0040.0339.18
5.2.80.0090.0369.18
5.2.70.0080.0349.18
5.2.60.0030.0469.14
5.2.50.0100.0489.09
5.2.40.0060.0399.07
5.2.30.0060.0439.05
5.2.20.0080.0319.04
5.2.10.0080.0298.94
5.2.00.0060.0328.80
5.1.60.0070.0268.09
5.1.50.0080.0268.09
5.1.40.0050.0348.07
5.1.30.0090.0388.42
5.1.20.0090.0368.44
5.1.10.0120.0388.16
5.1.00.0060.0348.16
5.0.50.0110.0326.64
5.0.40.0060.0426.50
5.0.30.0060.0476.32
5.0.20.0040.0276.27
5.0.10.0090.0436.26
5.0.00.0080.0526.25
4.4.90.0060.0224.78
4.4.80.0180.0364.76
4.4.70.0030.0174.75
4.4.60.0040.0154.76
4.4.50.0010.0184.77
4.4.40.0110.0904.71
4.4.30.0090.0384.76
4.4.20.0070.0274.84
4.4.10.0030.0194.85
4.4.00.0060.0364.75
4.3.110.0050.0254.67
4.3.100.0070.0384.66
4.3.90.0030.0184.64
4.3.80.0010.0334.58
4.3.70.0040.0164.63
4.3.60.0040.0204.62
4.3.50.0020.0224.63
4.3.40.0040.0314.54
4.3.30.0020.0203.30
4.3.20.0030.0193.28
4.3.10.0030.0233.24
4.3.00.0000.0276.93

preferences:
63.14 ms | 400 KiB | 5 Q