3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ public function gettest(){ throw new Exception('The api key must be a string and not empty'); } } try {$test = new Test(); for($i=0;$i<10;$i++){ echo 'start'.PHP_EOL; //$test->test(); } } catch (Exception $e) { echo $e->getMessage(); exit(1); }

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.0080.01218.31
8.3.50.0070.01221.93
8.3.40.0060.01318.67
8.3.30.0030.01020.21
8.3.20.0040.00420.22
8.3.10.0090.00622.14
8.3.00.0050.00322.43
8.2.180.0090.00618.30
8.2.170.0080.00622.96
8.2.160.0070.00722.21
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0130.00626.16
8.2.120.0040.00419.97
8.2.110.0090.00022.26
8.2.100.0120.00317.59
8.2.90.0000.00719.09
8.2.80.0040.00419.32
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0050.00518.07
8.2.40.0050.00318.16
8.2.30.0030.00517.89
8.2.20.0060.00317.48
8.2.10.0030.00517.70
8.2.00.0000.00817.65
8.1.280.0130.00325.92
8.1.270.0050.00324.66
8.1.260.0080.00626.35
8.1.250.0000.00728.09
8.1.240.0060.00323.91
8.1.230.0080.00419.10
8.1.220.0030.00517.76
8.1.210.0030.00518.77
8.1.200.0000.01017.35
8.1.190.0080.00017.28
8.1.180.0040.00418.89
8.1.170.0000.00918.57
8.1.160.0000.00720.95
8.1.150.0070.00318.60
8.1.140.0050.00217.31
8.1.130.0000.00717.86
8.1.120.0030.00317.47
8.1.110.0030.00617.27
8.1.100.0040.00417.45
8.1.90.0020.00517.44
8.1.80.0030.00417.29
8.1.70.0040.00417.43
8.1.60.0030.00617.56
8.1.50.0000.00817.45
8.1.40.0040.00417.46
8.1.30.0000.00817.54
8.1.20.0000.00817.51
8.1.10.0040.00417.56
8.1.00.0030.00717.53
8.0.300.0060.00318.77
8.0.290.0040.00417.18
8.0.280.0000.00818.46
8.0.270.0030.00317.20
8.0.260.0070.00016.89
8.0.250.0040.00416.91
8.0.240.0080.00016.81
8.0.230.0040.00416.79
8.0.220.0030.00316.84
8.0.210.0030.00316.75
8.0.200.0030.00316.91
8.0.190.0030.00516.92
8.0.180.0030.00716.80
8.0.170.0050.00316.82
8.0.160.0070.00016.91
8.0.150.0040.00416.70
8.0.140.0000.00716.71
8.0.130.0000.00813.30
8.0.120.0030.00616.82
8.0.110.0070.00016.74
8.0.100.0000.00716.89
8.0.90.0050.00316.88
8.0.80.0090.00616.85
8.0.70.0070.00016.73
8.0.60.0040.00416.76
8.0.50.0040.00416.89
8.0.30.0120.00617.17
8.0.20.0150.00317.40
8.0.10.0000.00717.00
8.0.00.0090.01216.68
7.4.330.0020.00215.03
7.4.320.0070.00016.50
7.4.300.0030.00616.54
7.4.290.0000.00716.47
7.4.280.0000.00616.45
7.4.270.0040.00416.55
7.4.260.0000.00613.27
7.4.250.0000.00716.44
7.4.240.0020.00516.48
7.4.230.0040.00416.63
7.4.220.0100.01616.38
7.4.210.0080.00716.54
7.4.200.0070.00016.36
7.4.190.0070.00016.59
7.4.160.0110.00616.55
7.4.150.0160.00617.40
7.4.140.0100.01117.86
7.4.130.0030.01416.50
7.4.120.0100.00716.45
7.4.110.0120.00616.54
7.4.100.0130.01016.41
7.4.90.0110.00616.44
7.4.80.0090.00919.39
7.4.70.0130.00316.28
7.4.60.0100.00716.45
7.4.50.0040.00416.30
7.4.40.0060.00622.77
7.4.30.0070.00916.55
7.4.00.0060.00614.63
7.3.330.0050.00013.23
7.3.320.0020.00213.30
7.3.310.0030.00316.33
7.3.300.0030.00316.27
7.3.290.0090.00916.29
7.3.280.0080.00816.28
7.3.270.0060.00917.40
7.3.260.0130.00316.57
7.3.250.0090.00816.40
7.3.240.0090.00616.37
7.3.230.0100.00616.52
7.3.210.0100.00716.55
7.3.200.0060.00919.39
7.3.190.0120.00416.53
7.3.180.0040.01316.32
7.3.170.0060.01016.31
7.3.160.0050.01416.54
7.3.120.0120.00314.87
7.2.330.0090.00916.68
7.2.320.0170.00816.73
7.2.310.0000.02016.55
7.2.300.0140.00316.74
7.2.290.0130.00316.72
7.2.80.0000.00816.80
7.2.60.0100.00016.83
7.2.00.0070.01019.46
7.1.200.0000.01415.74
7.1.100.0030.00717.90
7.1.70.0040.00417.17
7.1.60.0100.01419.43
7.1.50.0030.01716.65
7.1.00.0070.03722.50
7.0.200.0030.00716.79
7.0.140.0070.07022.10
7.0.60.0000.04320.07
7.0.50.0100.07017.95
7.0.40.0130.08020.40
7.0.30.0300.08020.28
7.0.20.0200.04320.24
7.0.10.0300.04320.25
7.0.00.0030.07720.11
5.6.280.0000.07720.93
5.6.210.0070.08020.62
5.6.200.0100.06318.18
5.6.190.0130.08020.41
5.6.180.0300.07320.34
5.6.170.0170.04020.46
5.6.160.0030.04320.56
5.6.150.0130.07718.18
5.6.140.0130.03018.14
5.6.130.0070.05018.27
5.6.120.0030.07021.11
5.6.110.0200.06721.00
5.6.100.0130.07020.98
5.6.90.0170.07020.98
5.6.80.0070.08320.51
5.6.70.0270.05720.28
5.5.350.0070.08020.43
5.5.340.0030.04317.94
5.5.330.0100.06720.15
5.5.320.0300.08020.24
5.5.310.0230.05720.28
5.5.300.0200.06317.92
5.5.290.0030.05318.10
5.5.280.0000.08020.80
5.5.270.0100.08320.86
5.5.260.0130.07320.89
5.5.250.0070.09320.68
5.5.240.0130.07020.36
5.4.450.0100.06319.61
5.4.440.0870.07319.16
5.4.430.0670.07019.60
5.4.420.1370.05319.47
5.4.410.0900.06019.30
5.4.400.1070.05018.78
5.4.390.1330.07318.63
5.4.380.0100.06318.56
5.4.370.0200.04718.56
5.4.360.0100.05718.59
5.4.350.0120.06012.02
5.4.340.0090.05212.01
5.4.320.0070.04312.50
5.4.310.0080.04012.49
5.4.300.0080.04112.50
5.4.290.0080.03512.49
5.4.280.0080.03512.39
5.4.270.0090.04112.39
5.4.260.0070.05319.09
5.4.250.0130.07318.76
5.4.240.0030.05718.74
5.4.230.0100.05018.99
5.4.220.0070.05718.95
5.4.210.0130.04718.93
5.4.200.0030.08019.09
5.4.190.0130.06718.78
5.4.180.0130.07318.95
5.4.170.0170.04018.93
5.4.160.0130.04318.88
5.4.150.0030.06018.97
5.4.140.0000.06016.43
5.4.130.0070.05316.54
5.4.120.0100.07316.55
5.4.110.0230.06716.42
5.4.100.0000.06016.50
5.4.90.0100.04716.51
5.4.80.0070.05016.47
5.4.70.0100.05716.64
5.4.60.0100.06016.63
5.4.50.0070.05016.39
5.4.40.0130.05716.50
5.4.30.0070.05716.54
5.4.20.0130.05016.49
5.4.10.0130.06016.38
5.4.00.0170.04015.95
5.3.290.0070.04912.80
5.3.280.0030.05714.61
5.3.270.0100.05014.83
5.3.260.0070.05314.53
5.3.250.0130.04314.61
5.3.240.0070.05314.44
5.3.230.0170.06314.43
5.3.220.0070.05314.40
5.3.210.0100.07314.75
5.3.200.0130.07014.41
5.3.190.0030.05314.54
5.3.180.0070.06714.39
5.3.170.0070.05014.70
5.3.160.0100.05014.74
5.3.150.0130.04714.74
5.3.140.0170.04714.54
5.3.130.0030.06314.63
5.3.120.0100.05014.63
5.3.110.0200.05314.64
5.3.100.0100.05714.19
5.3.90.0070.05013.91
5.3.80.0100.05014.00
5.3.70.0130.04314.08
5.3.60.0100.04714.01
5.3.50.0100.04713.95
5.3.40.0030.07014.03
5.3.30.0070.05013.75
5.3.20.0200.04713.76
5.3.10.0200.05713.74
5.3.00.0070.05713.54
5.2.170.0100.04011.23
5.2.160.0100.06011.23
5.2.150.0170.05011.23
5.2.140.0030.05711.14
5.2.130.0100.03711.32
5.2.120.0070.04011.17
5.2.110.0100.04011.32
5.2.100.0100.05310.93
5.2.90.0070.04311.09
5.2.80.0070.06011.27
5.2.70.0070.06011.07
5.2.60.0030.04710.95
5.2.50.0070.04011.09
5.2.40.0100.04310.95
5.2.30.0070.04011.05
5.2.20.0070.05311.11
5.2.10.0070.04010.83
5.2.00.0000.04310.80
5.1.60.0030.03710.05
5.1.50.0030.03710.20
5.1.40.0030.0409.96
5.1.30.0070.04710.31
5.1.20.0070.03710.36
5.1.10.0070.03310.30
5.1.00.0030.04010.26
5.0.50.0130.0208.51
5.0.40.0100.0408.58
5.0.30.0000.0638.32
5.0.20.0100.0208.14
5.0.10.0030.0308.40
5.0.00.0100.0438.39
4.4.90.0070.0237.50
4.4.80.0070.0277.50
4.4.70.0000.0237.50
4.4.60.0030.0307.50
4.4.50.0030.0207.50
4.4.40.0000.0377.49
4.4.30.0070.0277.49
4.4.20.0070.0207.49
4.4.10.0030.0277.49
4.4.00.0070.0377.49
4.3.110.0100.0237.49
4.3.100.0070.0177.49
4.3.90.0000.0237.49
4.3.80.0030.0407.49
4.3.70.0100.0207.49
4.3.60.0000.0337.49
4.3.50.0100.0177.50
4.3.40.0000.0377.50
4.3.30.0070.0237.50
4.3.20.0000.0277.50
4.3.10.0000.0237.50
4.3.00.0000.0237.09

preferences:
45.77 ms | 401 KiB | 5 Q