3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function bar() { var_dump($this instanceof foo); yield; } } (new foo)->bar()->next();

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.0190.00318.30
8.3.50.0140.00718.27
8.3.40.0150.00318.71
8.3.30.0110.00418.69
8.3.20.0000.00818.64
8.3.10.0040.00421.82
8.3.00.0040.00417.79
8.2.180.0070.01116.50
8.2.170.0110.00722.96
8.2.160.0130.00020.39
8.2.150.0040.00424.18
8.2.140.0120.00024.66
8.2.130.0050.00317.68
8.2.120.0040.00426.35
8.2.110.0070.00322.08
8.2.100.0120.00017.50
8.2.90.0030.00619.11
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0040.00417.90
8.2.50.0000.00818.07
8.2.40.0040.00419.28
8.2.30.0070.00020.61
8.2.20.0070.00017.59
8.2.10.0050.00218.05
8.2.00.0060.00318.16
8.1.280.0080.01225.92
8.1.270.0030.00523.81
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0030.00622.54
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0040.00421.93
8.1.150.0000.00718.87
8.1.140.0000.00719.46
8.1.130.0070.00017.62
8.1.120.0040.00317.38
8.1.110.0040.00417.43
8.1.100.0050.00217.40
8.1.90.0080.00017.41
8.1.80.0030.00317.40
8.1.70.0030.00317.27
8.1.60.0050.00217.57
8.1.50.0080.00417.38
8.1.40.0080.00017.33
8.1.30.0060.00617.46
8.1.20.0040.00417.61
8.1.10.0000.00817.52
8.1.00.0030.00617.44
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.35
8.0.270.0000.00717.20
8.0.260.0070.00017.21
8.0.250.0020.00516.83
8.0.240.0070.00016.84
8.0.230.0070.00016.88
8.0.220.0030.00616.84
8.0.210.0000.00716.75
8.0.200.0040.00416.89
8.0.190.0000.00716.83
8.0.180.0090.00316.84
8.0.170.0000.00816.81
8.0.160.0000.00816.73
8.0.150.0030.00516.79
8.0.140.0030.00316.76
8.0.130.0030.00313.29
8.0.120.0040.00416.72
8.0.110.0040.00416.76
8.0.100.0000.00816.67
8.0.90.0030.00516.61
8.0.80.0070.00716.84
8.0.70.0070.00016.85
8.0.60.0030.00316.84
8.0.50.0050.00316.73
8.0.30.0070.01217.07
8.0.20.0100.01117.40
8.0.10.0000.00716.93
8.0.00.0090.00916.81
7.4.330.0000.00415.08
7.4.320.0040.00416.46
7.4.300.0060.00016.54
7.4.290.0030.00316.52
7.4.280.0050.00216.42
7.4.270.0070.00016.52
7.4.260.0080.00016.40
7.4.250.0020.00516.51
7.4.240.0000.00716.58
7.4.230.0000.00716.53
7.4.220.0040.01416.35
7.4.210.0050.00916.55
7.4.200.0050.00216.56
7.4.160.0060.01016.63
7.4.150.0120.00917.40
7.4.140.0090.01017.86
7.4.130.0100.00616.52
7.4.120.0110.00616.41
7.4.110.0090.00916.45
7.4.100.0040.01216.57
7.4.90.0080.00816.20
7.4.80.0100.00719.39
7.4.70.0130.00516.52
7.4.60.0100.00616.59
7.4.50.0030.00916.32
7.4.40.0120.00616.23
7.4.30.0140.01016.50
7.4.10.0130.00714.82
7.4.00.0080.00814.80
7.3.330.0030.00313.06
7.3.320.0050.00013.31
7.3.310.0040.00416.19
7.3.300.0000.00616.18
7.3.290.0040.00416.15
7.3.280.0070.00816.25
7.3.270.0120.00817.40
7.3.260.0100.01016.23
7.3.250.0130.00816.18
7.3.240.0080.00916.32
7.3.230.0100.00616.39
7.3.210.0100.01316.16
7.3.200.0090.00616.61
7.3.190.0040.01216.35
7.3.180.0100.00716.54
7.3.170.0090.00916.22
7.3.160.0080.00816.43
7.3.130.0060.01314.67
7.3.120.0030.01214.84
7.3.110.0030.01914.44
7.3.100.0090.00614.91
7.3.90.0040.01114.38
7.3.80.0080.00814.94
7.3.70.0070.00714.74
7.3.60.0060.00314.76
7.3.50.0060.00614.71
7.3.40.0040.00714.51
7.3.30.0060.00614.70
7.3.20.0080.00816.70
7.3.10.0030.01216.66
7.3.00.0080.00516.52
7.2.330.0070.01016.63
7.2.320.0100.01316.42
7.2.310.0100.00616.48
7.2.300.0070.01116.50
7.2.290.0110.00516.38
7.2.260.0150.00615.14
7.2.250.0040.01515.15
7.2.240.0040.01114.96
7.2.230.0070.00714.79
7.2.220.0040.01114.77
7.2.210.0030.00614.48
7.2.200.0100.00314.78
7.2.190.0030.00714.84
7.2.180.0140.00014.78
7.2.170.0080.00814.71
7.2.160.0140.00014.63
7.2.150.0100.00316.44
7.2.140.0030.00716.90
7.2.130.0040.01016.78
7.2.120.0080.00516.84
7.2.110.0060.00716.60
7.2.100.0080.00616.82
7.2.90.0020.01316.78
7.2.80.0060.00616.78
7.2.70.0060.00416.72
7.2.60.0040.00916.72
7.2.50.0050.00716.91
7.2.40.0060.00616.77
7.2.30.0030.01016.69
7.2.20.0060.00816.82
7.2.10.0020.01016.89
7.2.00.0080.00816.76
7.1.330.0070.01015.63
7.1.320.0040.00715.54
7.1.310.0030.01015.86
7.1.300.0120.00015.66
7.1.290.0050.00515.67
7.1.280.0030.01015.70
7.1.270.0070.00715.66
7.1.260.0030.00815.70
7.1.250.0050.00815.60
7.1.240.0070.01015.79
7.1.230.0000.01015.45
7.1.220.0030.00615.63
7.1.210.0000.01115.77
7.1.200.0020.01115.75
7.1.190.0060.00915.79
7.1.180.0140.00015.68
7.1.170.0050.00515.59
7.1.160.0040.00715.68
7.1.150.0030.00915.78
7.1.140.0030.00615.83
7.1.130.0030.00615.73
7.1.120.0000.01215.45
7.1.110.0030.01015.56
7.1.100.0060.00315.58
7.1.90.0070.00715.38
7.1.80.0030.00915.77
7.1.70.0000.01216.24
7.1.60.0060.00316.17
7.1.50.0090.00615.84
7.1.40.0000.00915.83
7.1.30.0000.01515.73
7.1.20.0060.00615.65
7.1.10.0060.00615.73
7.1.00.0030.04419.06
7.0.330.0060.00315.18
7.0.320.0030.00615.43
7.0.310.0070.00715.34
7.0.300.0070.00715.06
7.0.290.0030.00615.35
7.0.280.0060.00615.35
7.0.270.0060.00915.41
7.0.260.0080.00015.37
7.0.250.0000.01115.46
7.0.240.0000.01015.39
7.0.230.0000.01115.23
7.0.220.0060.00815.16
7.0.210.0000.00815.17
7.0.200.0090.00315.86
7.0.190.0140.00015.29
7.0.180.0110.00315.45
7.0.170.0080.00315.48
7.0.160.0070.00715.34
7.0.150.0040.01115.44
7.0.140.0110.00015.19
7.0.130.0000.00915.17
7.0.120.0060.00915.40
7.0.110.0050.00315.31
7.0.100.0100.00315.15
7.0.90.0000.01215.22
7.0.80.0070.00715.39
7.0.70.0040.00715.41
7.0.60.0110.03117.66
7.0.50.0170.03517.87
7.0.40.0130.03216.74
7.0.30.0120.03616.78
7.0.20.0190.02716.88
7.0.10.0160.02816.95
7.0.00.0100.03916.85
5.6.400.0090.00014.12
5.6.390.0000.01314.32
5.6.380.0050.00314.39
5.6.370.0030.00914.17
5.6.360.0040.00814.43
5.6.350.0030.00914.22
5.6.340.0070.00714.00
5.6.330.0030.01014.07
5.6.320.0040.00413.89
5.6.310.0000.01414.03
5.6.300.0000.01014.17
5.6.290.0000.01114.09
5.6.280.0030.00914.13
5.6.270.0040.01214.50
5.6.260.0070.01013.93
5.6.250.0060.00314.52
5.6.240.0080.00313.91
5.6.230.0070.00714.04
5.6.220.0060.00914.22
5.6.210.0090.03117.36
5.6.200.0130.03217.60
5.6.190.0180.02817.65
5.6.180.0180.03817.58
5.6.170.0130.03317.70
5.6.160.0170.02817.59
5.6.150.0130.03217.65
5.6.140.0080.03717.71
5.6.130.0150.04017.53
5.6.120.0170.03217.62
5.6.110.0120.03517.65
5.6.100.0080.03817.66
5.6.90.0220.02517.55
5.6.80.0100.03417.18
5.6.70.0100.03217.26
5.6.60.0100.03017.41
5.6.50.0050.03717.28
5.6.40.0070.03417.21
5.6.30.0140.02717.22
5.6.20.0170.02517.27
5.6.10.0160.02617.27
5.6.00.0120.02717.18
5.5.380.0120.00314.10
5.5.370.0060.00614.14
5.5.360.0050.00514.17
5.5.350.0170.02817.44
5.5.340.0120.03717.42
5.5.330.0200.02417.39
5.5.320.0130.03017.37
5.5.310.0100.03417.55
5.5.300.0160.03117.65
5.5.290.0170.03317.66
5.5.280.0100.03617.39
5.5.270.0190.02917.53
5.5.260.0080.04017.42
5.5.250.0130.03117.44
5.5.240.0140.02917.10
5.5.230.0030.03817.04
5.5.220.0100.03017.23
5.5.210.0100.03417.03
5.5.200.0080.03217.28
5.5.190.0070.03517.17
5.5.180.0030.04817.22
5.5.170.0110.00414.03
5.5.160.0150.03517.07
5.5.150.0150.03117.00
5.5.140.0130.02617.03
5.5.130.0090.03017.05
5.5.120.0100.03217.14
5.5.110.0120.02817.25
5.5.100.0080.03117.08
5.5.90.0180.02317.11
5.5.80.0090.03217.03
5.5.70.0190.02217.12
5.5.60.0110.02816.95
5.5.50.0070.03417.09
5.5.40.0050.03516.98
5.5.30.0120.03216.96
5.5.20.0080.03216.81
5.5.10.0210.03117.11
5.5.00.0140.02816.92

preferences:
62.22 ms | 401 KiB | 5 Q